﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Monoxide.Diagnostics;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            
            TraceSource source = new TraceSource("app");
            SourceSwitch switchIt = new SourceSwitch("onOff", "Desc");
            switchIt.Level = SourceLevels.Verbose;
            source.Switch = switchIt;

            ConsoleTraceListener listener = new ConsoleTraceListener();
            //No longer required. No longer adds a default trace listener.
            //source.Listeners.Clear();
            source.Listeners.Add(listener);
            
            source.TraceInformation("Hello from Mono.Diagnostics");
            Console.ReadKey();
        }
    }
}
